const express = require(`express`);
const app = express();

app.listen(9527, () => {
    console.log(95273521)


});
const middleware1 = (req, res, next) => {
    req.a = 10;
    next();

}

app.use(middleware1)

app.get(`/home`, (req, res) => {
    console.log(req.a)
    res.send("135154")
    let obj = req.query
        // console.log(obj[0])

})

app.get(`/news`, (req, res) => {
    res.send(" I AM ROUTES")
    let obj = req.query
    console.log(obj.username)

})